projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
275c052
)
VT-d: fix coding style in acpi_find_matched_drhd_unit()
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 11 Feb 2010 19:49:31 +0000
(19:49 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 11 Feb 2010 19:49:31 +0000
(19:49 +0000)
Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/dmar.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/vtd/dmar.c
b/xen/drivers/passthrough/vtd/dmar.c
index 5ed4877b1d5399e8004ab24d67dfcb736427e4cd..1b083f7af84958db92e53d6ac50ac1f4ba03490b 100644
(file)
--- a/
xen/drivers/passthrough/vtd/dmar.c
+++ b/
xen/drivers/passthrough/vtd/dmar.c
@@
-176,13
+176,18
@@
struct acpi_drhd_unit * acpi_find_matched_drhd_unit(struct pci_dev *pdev)
if ( pdev == NULL )
return NULL;
- if (pdev->info.is_extfn) {
+ if ( pdev->info.is_extfn )
+ {
bus = pdev->bus;
devfn = 0;
- } else if (pdev->info.is_virtfn) {
+ }
+ else if ( pdev->info.is_virtfn )
+ {
bus = pdev->info.physfn.bus;
devfn = PCI_SLOT(pdev->info.physfn.devfn) ? 0 : pdev->info.physfn.devfn;
- } else {
+ }
+ else
+ {
bus = pdev->bus;
devfn = pdev->devfn;
}